home *** CD-ROM | disk | FTP | other *** search
/ This Disc Bytes! / Power Computing - The Disc 2 - This Disc Bytes.ISO / mac / CodeWarrior 7 Lite for 68K / MacOS Support / Headers / Universal Headers / CMMComponent.h < prev    next >
Text File  |  1995-07-06  |  6KB  |  151 lines

  1. /*
  2.      File:        CMMComponent.h
  3.  
  4.      Contains:    ColorSync CMM Components
  5.  
  6.      Version:    Technology:    ColorSync 2.0
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __CMMCOMPONENT__
  21. #define __CMMCOMPONENT__
  22.  
  23.  
  24. #ifndef __TYPES__
  25. #include <Types.h>
  26. #endif
  27. /*    #include <ConditionalMacros.h>                                */
  28.  
  29. #ifndef __QUICKDRAW__
  30. #include <Quickdraw.h>
  31. #endif
  32. /*    #include <MixedMode.h>                                        */
  33. /*    #include <QuickdrawText.h>                                    */
  34.  
  35. #ifndef __COMPONENTS__
  36. #include <Components.h>
  37. #endif
  38.  
  39. #ifndef __CMAPPLICATION__
  40. #include <CMApplication.h>
  41. #endif
  42. /*    #include <Files.h>                                            */
  43. /*        #include <OSUtils.h>                                    */
  44. /*            #include <Memory.h>                                    */
  45. /*        #include <Finder.h>                                        */
  46. /*    #include <Printing.h>                                        */
  47. /*        #include <Errors.h>                                        */
  48. /*        #include <Dialogs.h>                                    */
  49. /*            #include <Menus.h>                                    */
  50. /*            #include <Controls.h>                                */
  51. /*            #include <Windows.h>                                */
  52. /*                #include <Events.h>                                */
  53. /*            #include <TextEdit.h>                                */
  54. /*    #include <CMICCProfile.h>                                    */
  55.  
  56. #ifdef __cplusplus
  57. extern "C" {
  58. #endif
  59.  
  60. #if PRAGMA_ALIGN_SUPPORTED
  61. #pragma options align=mac68k
  62. #endif
  63.  
  64. #if PRAGMA_IMPORT_SUPPORTED
  65. #pragma import on
  66. #endif
  67.  
  68.  
  69. enum {
  70.     CMMInterfaceVersion            = 1
  71. };
  72.  
  73. /* Component function selectors */
  74. /* Required */
  75. enum {
  76.     kCMMInit                    = 0,
  77.     kNCMMInit                    = 6,
  78.     kCMMMatchColors                = 1,
  79.     kCMMCheckColors                = 2
  80. };
  81.  
  82. /* Optional */
  83. enum {
  84.     kCMMValidateProfile            = 8,
  85.     kCMMFlattenProfile            = 14,
  86.     kCMMUnflattenProfile        = 15,
  87.     kCMMMatchBitmap                = 9,
  88.     kCMMCheckBitmap                = 10,
  89.     kCMMMatchPixMap                = 3,
  90.     kCMMCheckPixMap                = 4,
  91.     kCMMConcatenateProfiles        = 5,
  92.     kCMMConcatInit                = 7,
  93.     kCMMNewLinkProfile            = 16,
  94.     kCMMGetPS2ColorSpace        = 11,
  95.     kCMMGetPS2ColorRenderingIntent = 12,
  96.     kCMMGetPS2ColorRendering    = 13,
  97.     kCMMGetPS2ColorRenderingVMSize = 17
  98. };
  99.  
  100. extern pascal CMError NCMInit(ComponentInstance CMSession, CMProfileRef srcProfile, CMProfileRef dstProfile)
  101.  FIVEWORDINLINE(0x2F3C, 8, 6, 0x7000, 0xA82A);
  102. extern pascal CMError CMInit(ComponentInstance CMSession, CMProfileHandle srcProfile, CMProfileHandle dstProfile)
  103.  FIVEWORDINLINE(0x2F3C, 8, 0, 0x7000, 0xA82A);
  104. extern pascal CMError CMMatchColors(ComponentInstance CMSession, CMColor *myColors, unsigned long count)
  105.  FIVEWORDINLINE(0x2F3C, 8, 1, 0x7000, 0xA82A);
  106. extern pascal CMError CMCheckColors(ComponentInstance CMSession, CMColor *myColors, unsigned long count, long *result)
  107.  FIVEWORDINLINE(0x2F3C, 12, 2, 0x7000, 0xA82A);
  108. /* Optional functions */
  109. extern pascal CMError CMMValidateProfile(ComponentInstance CMSession, CMProfileRef prof, Boolean *valid)
  110.  FIVEWORDINLINE(0x2F3C, 8, 8, 0x7000, 0xA82A);
  111. extern pascal CMError CMMFlattenProfile(ComponentInstance CMSession, CMProfileRef prof, unsigned long flags, CMFlattenUPP proc, void *refCon)
  112.  FIVEWORDINLINE(0x2F3C, 16, 14, 0x7000, 0xA82A);
  113. extern pascal CMError CMMUnflattenProfile(ComponentInstance CMSession, FSSpec *resultFileSpec, CMFlattenUPP proc, void *refCon)
  114.  FIVEWORDINLINE(0x2F3C, 12, 15, 0x7000, 0xA82A);
  115. extern pascal CMError CMMatchBitmap(ComponentInstance CMSession, const CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *matchedBitmap)
  116.  FIVEWORDINLINE(0x2F3C, 16, 9, 0x7000, 0xA82A);
  117. extern pascal CMError CMCheckBitmap(ComponentInstance CMSession, const CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *resultBitmap)
  118.  FIVEWORDINLINE(0x2F3C, 16, 10, 0x7000, 0xA82A);
  119. extern pascal CMError CMMatchPixMap(ComponentInstance CMSession, PixMap *myPixMap, CMBitmapCallBackUPP progressProc, void *refCon)
  120.  FIVEWORDINLINE(0x2F3C, 12, 3, 0x7000, 0xA82A);
  121. extern pascal CMError CMCheckPixMap(ComponentInstance CMSession, const PixMap *myPixMap, CMBitmapCallBackUPP progressProc, BitMap *myBitMap, void *refCon)
  122.  FIVEWORDINLINE(0x2F3C, 16, 4, 0x7000, 0xA82A);
  123. extern pascal CMError CMConcatInit(ComponentInstance CMSession, CMConcatProfileSet *profileSet)
  124.  FIVEWORDINLINE(0x2F3C, 4, 7, 0x7000, 0xA82A);
  125. extern pascal CMError CMNewLinkProfile(ComponentInstance CMSession, CMProfileRef *prof, const CMProfileLocation *targetLocation, CMConcatProfileSet *profileSet)
  126.  FIVEWORDINLINE(0x2F3C, 12, 16, 0x7000, 0xA82A);
  127. extern pascal CMError CMMGetPS2ColorSpace(ComponentInstance CMSession, CMProfileRef srcProf, unsigned long flags, CMFlattenUPP proc, void *refCon)
  128.  FIVEWORDINLINE(0x2F3C, 16, 11, 0x7000, 0xA82A);
  129. extern pascal CMError CMMGetPS2ColorRenderingIntent(ComponentInstance CMSession, CMProfileRef srcProf, unsigned long flags, CMFlattenUPP proc, void *refCon)
  130.  FIVEWORDINLINE(0x2F3C, 16, 12, 0x7000, 0xA82A);
  131. extern pascal CMError CMMGetPS2ColorRendering(ComponentInstance CMSession, CMProfileRef srcProf, CMProfileRef dstProf, unsigned long flags, CMFlattenUPP proc, void *refCon)
  132.  FIVEWORDINLINE(0x2F3C, 20, 13, 0x7000, 0xA82A);
  133. extern pascal CMError CMMGetPS2ColorRenderingVMSize(ComponentInstance CMSession, CMProfileRef srcProf, CMProfileRef dstProf, unsigned long *vmSize)
  134.  FIVEWORDINLINE(0x2F3C, 12, 17, 0x7000, 0xA82A);
  135. extern pascal CMError CMConcatenateProfiles(ComponentInstance CMSession, CMProfileHandle thru, CMProfileHandle dst, CMProfileHandle *newDst)
  136.  FIVEWORDINLINE(0x2F3C, 12, 5, 0x7000, 0xA82A);
  137.  
  138. #if PRAGMA_IMPORT_SUPPORTED
  139. #pragma import off
  140. #endif
  141.  
  142. #if PRAGMA_ALIGN_SUPPORTED
  143. #pragma options align=reset
  144. #endif
  145.  
  146. #ifdef __cplusplus
  147. }
  148. #endif
  149.  
  150. #endif /* __CMMCOMPONENT__ */
  151.